package amazing.core.module;

public class ModuleFailedToLoadException extends Exception
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -126593951628337630L;

	private final Exception baseException;
	public ModuleFailedToLoadException()
	{
		super("A module had failed to load.");
		baseException = null;
	}
	
	public ModuleFailedToLoadException(String e)
	{
		super("A module had failed to load: " + e);
		baseException = null;
	}

	public ModuleFailedToLoadException(Exception e) {
		baseException = e;
	}
	public Exception getBaseException()
	{
		return baseException;
	}
}
